package com.lemon.controller;

import com.lemon.downloadandupload.Task;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

    @Autowired
    Task task;

    @GetMapping("/downUpByKeyWord")
    public String downUpByKeyWord(){
        task.downUpByKeyWord();
        return "ok";
    }

    @GetMapping("/downUpByUid")
    public String downUpByUid(){
        task.downUpByUid();
        return "ok";
    }
}
